package com.jiepu.daily.corejava.advanceed.part7io.day0808;


import com.jiepu.daily.corejava.day0708.Student;

import java.io.*;

/**
 * @Description: ObjictInputStream
 * @author: xinjie
 * @date: 2020/8/8  16:59
 */
public class IODemo12 {
	public static void main(String[] args) throws IOException {

		Student student = new Student(1001,"xinjie",19,"man");
		String path = "src/com/jiepu/daily/advanceed/part7io/iotest/demo11.txt";
		FileOutputStream fos = new FileOutputStream(path);
		ObjectOutputStream oos =  new ObjectOutputStream(fos);
		oos.writeObject(student);
		
	}
}

